
module test1();
  reg [5:0] iOPcode, iFuncCode;
	reg iClk, iReset;
	wire PCWriteCond, PCWrite, lorD, MemRead, MemWrite, MemtoReg, IRWrite, ALUSrcA, RegWrite, RegDst;
	wire [1:0] ALUSrcB, PCSource;
	wire [2:0] ALUCont;




  
  control_Unit CU1(
  iClk,
  iReset,
	iOPcode,
	iFuncCode,
	PCWriteCond, 
	PCWrite, 
	lorD,
	MemRead, 
	MemWrite, 
	MemtoReg, 
	IRWrite,
	PCSource,
	ALUSrcA, 
  ALUSrcB,
	RegWrite, 
	RegDst,
	ALUCont
	);
  initial #300 $finish;
  initial begin iClk=0; forever #10 iClk=~iClk; end
  initial fork
  iReset = 1'b1;
  #15 iReset = 1'b0;
  #15 iOPcode = 6'b001101;
  #95 iOPcode = 6'b101011;
  join
  
endmodule


